#ifndef __QR_HN_H_
#define __QR_HN_H_

#include <stdint.h>
#include "QrDefine.h"

typedef struct {
	uint64_t uid;
	uint8_t did[6];
	uint8_t type;
	uint8_t count;
	uint32_t stamp1;
	uint32_t stamp2;
}HNQrRecord_T;


int HN_Qr_Proc(uint8_t* buf, uint8_t len, uint8_t* out, uint8_t* olen);
int Qr_ReceiveCommand(uint8_t* buf, uint8_t len);

int HN_Qr_CheckUser(HNQrRecord_T* record, uint32_t now);
int HN_Qr_CheckCasualUserCount(HNQrRecord_T*  recorde, uint32_t now);

#endif
